#include "encryptor.h"

char Encryptor::m_key = 'k';
Encryptor::Encryptor()
{
}

QByteArray Encryptor::encrypt(const QByteArray& data)
{
    QByteArray result = data;
    for (char& byte : result)
    {
        byte ^= m_key;
    }
    return result;
}

QByteArray Encryptor::decrypt(const QByteArray& data)
{
    QByteArray result = data;
    for (char& byte : result)
    {
        byte ^= m_key;
    }
    return result;
}
